-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preferences: Add option to control preloading of video data #4122
Conversation
Fix iv-org#4110 by adding an option to control the preloading of video data on page load. If disabled ("false"), the browser will not preload any video data until the user explicitly hits the "Play" button. If enabled ("true"), the default behavior will be used, which means the browser decides how much of the video will be preloaded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any particular reason why you're having the preload parameter directly set the videojs option?
Hi. No, not a specific reason. But your question got me thinking about something else: I've set the I just tested it locally when removing setting the |
If the HTML5 "<video>" element defines the "preload" attribute directly, it isn't necessary to redefine the "preload" option in the player.js.
This pull request has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely abandoned or outdated. If you think this pull request is still relevant and applicable, you just have to post a comment and it will be unmarked. |
I just want to inform you that I'm actively using this feature on my private instance since about half a year now. It works flawlessly and never made a problem. Any chance this PR will get reviewed/merged soon? |
@SamantazFox Any chance this can be merged in the next batch? |
Accept suggested change from @SamantazFox. Co-authored-by: Samantaz Fox <coding@samantaz.fr>
Thanks for your contribution to invidious :D |
This PR fixes #4110 by adding a configuration option to control the preloading of video data on page load by making use of the HTML5
preload
attribute of the<video>
element.The option is enabled by default, so the
preload
attribute will have the default valueauto
. If users want to prevent preloading of video data, they can change the option tofalse
so that the attribute will have the valuenone
.